package com.fifth.business.service.impl;

import com.fifth.business.mapper.BusinessPermissionMapper;
import com.fifth.business.service.BusinessPermissionService;
import com.fifth.common.pojo.entity.BusinessPermission;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class BusinessPermissionServiceImpl implements BusinessPermissionService{

    @Autowired
    private BusinessPermissionMapper businessPermissionMapper;


    /**
     * 查询所有商家权限
     * @return
     */
    @Override
    public List<BusinessPermission> getPermission() {
        List<BusinessPermission> getPermission= businessPermissionMapper.selectAll();
        return getPermission;

    }
}
